package com.lh0811.forge.dependency.basic_code;

import com.alibaba.fastjson2.JSON;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

public class TestUtil {

    @Getter
    @Setter
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Tt {
        private String str1;
        private String str2;
    }

    public static void main(String[] args) throws Exception {
        Tt tt1 = new Tt("x", "y");
        System.out.println("tt1 1:" + JSON.toJSONString(tt1));
        String str1 = tt1.getStr1();
        System.out.println("str1 1:" + str1);
        str1 = "xx";
        System.out.println("str1 2:" + str1);

        System.out.println("tt1 2:" + JSON.toJSONString(tt1));

        String jsonString = JSON.toJSONString(null);
        System.out.printf("jsonString: " + jsonString);
    }

}
